package com.ssy.lingxi.pay.api.dto.request.eAccount;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;

/**
 * e账号收款方会员实体
 * @author jw.chen
 * @version 2.0.0
 * @date 2021/12/9
 */
@Data
public class StoreRefundReceiveMemberRequest implements Serializable {
    private static final long serialVersionUID = -3227494120569999674L;

    /**
     * 会员id(收款方)
     */
    @NotNull(message = "会员id要大于0")
    @Positive(message = "会员id要大于0")
    private Long memberId;

    /**
     * 会员角色id(收款方)
     */
    @NotNull(message = "角色id要大于0")
    @Positive(message = "角色id要大于0")
    private Long memberRoleId;

    /**
     * 退款金额
     */
    @NotNull(message = "退款金额要大于等于0")
    @PositiveOrZero(message = "退款金额要大于等于0")
    private Double refundMoney;

    /**
     * 备注，最长50个字符
     */
    private String remark;

}
